Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Fix stats by country in nginx status page #1235

Merged
merged 1 commit into from
Jun 20, 2016

Conversation

aledbf
Copy link
Contributor

@aledbf aledbf commented Jun 17, 2016

captura de pantalla 2016-06-17 a las 6 27 05 p m

fixes #1194

@aledbf
Copy link
Contributor Author

aledbf commented Jun 17, 2016

ping @bprashanth

@@ -16,18 +16,24 @@ events {
}

http {
{{/* we use the value of the header X-Forwarded-For to be able to use the geo_ip module */}}
real_ip_header X-Forwarded-For;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for my own education, can it geo locate based on src ip as well?

Copy link
Contributor Author

@aledbf aledbf Jun 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes that's the default if no X-Forwarded-For header is present in the request

@bprashanth
Copy link

LGTM

@bprashanth bprashanth merged commit eeecaa2 into kubernetes-retired:master Jun 20, 2016
@aledbf aledbf deleted the fix-geoip branch June 20, 2016 21:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nginx Ingress Controller - Stats by country does not work
3 participants